Capital One interview question

REST API Design based on a scenario