Pregunta de entrevista de Coding Blocks

It was mostly based on dsa