¿a las dos termina la clase?
Explanation:
Every proper sentence in Spanish must have a subject and a verb. There is also a proper place for subjects and verbs in a sentence. Begin a sentence with the subject (the person, place, or thing you're talking about). Follow that with the verb, and then the rest of the sentence (where, how, etc).