Google Interview Question

Example exercise: design an alarm clock with only three buttons.