Pregunta de entrevista de Tutor.com

Wanted me to solve a math problem, was not very difficult.