Leaf Group interview question

Clock Hands problem on white board