Capital One interview question

Technical: data parsing/best data structure to use