Capital One interview question

Build an APP out including test cases