Capital One Interview Question

Object oriented design for technical round