Credit Karma Interview Question

Data structure question