Pregunta de entrevista de Talka

Coding exercises and complexity questions.