Capital One Interview Question

Refactor this code please - was a bunch of if statements