Domanda di colloquio di Uber

the question are mostly from data structure