Pregunta de entrevista de Urban Insight

Complete the following programming challenge.