Domanda di colloquio di Amazon

Basic time complexity problems, alongside some simple coding