Domanda di colloquio di Amazon

2 questions on Data Structures to be solved on Hackerrrank