The man did the work "in the nick of time".
A
right on time
B
after deadline
C
long before deadline
D
very last minute
Correct Answer: very last minute
in the nick of time means at the last possible moment