He used to drink a cup off coffee before going to bed(改成一般疑问句和否定句)

问题描述:

He used to drink a cup off coffee before going to bed(改成一般疑问句和否定句)

Did he use to drink a cup of coffee before going to bed?
He didn't use to drink a cup of coffee before going to bed.