Xoriant Interview Question

Was given to solve a design problem regarding an alarm clock.