Credit Karma interview question

Data structure question