_____ his homework in time, he had to stay up late into the night.
#96129
A
Finishing
B
Having finished
C
To finish
D
To have finished