Upstream Interview Question

I was mostly asked about fundamental java concepts.