Pregunta de entrevista de Telstra

online program solving questions, which was simple