Pregunta de entrevista de Amazon

Leetcode based question only and self intro