Domanda di colloquio di Amazon

Three questions, all technical. The first two were about basic data structure and algorithm. The third one was a programming problem through an online coding platform.