Goldman Sachs Interview Question

Basic hacker rank data structures