Pregunta de entrevista de ReliaQuest

Standard coding question to view more how I work through problems