Pregunta de entrevista de Plex Systems, Inc.

Pretty straight forward coding question.