Pregunta de entrevista de Deem

question was solving some algorithms