Pregunta de entrevista de Amazon

Coding questions which should be solved using DSA.