A clock puzzle solver in java