Capital One interview question

Design and code solution for a code parser