Sollicitatievraag bij Goldman Sachs

I was given 2 simple coding tests in Java. They check your knowledge on data structures.