Domanda di colloquio di JPMorganChase

2 coding questions on data structures and algorithms