Google interview question

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