Pregunta de entrevista de Lhasa

Problem solving algorithm that was too basic