Goldman Sachs Interview Question

core java, DS/algo, puzzles