Pregunta de entrevista de Google

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