"Bruger du timen på at skrive breve?"
Translation:Are you spending the class on writing letters?
I think spending/ using the hour would be correct solutions here, too, since "time" means hour as well as class and both versions make sense. Just reported it.
spend something in doing something or spend something on something should be the correct grammar in English, I personally remember it should be this, instead of the answer indicates spending hour on writing the letter