Capital One interview question

Object oriented design for technical round