Domanda di colloquio di UBS

Solve a data structure problem and verify the code in github.