Copperleaf Interview Question

Coding puzzle about a clock problem