Pergunta de entrevista da empresa Amazon

contains two mid-level coding problems