Pregunta de entrevista de Turbolab Technologies

Coding question based on DSA