Capital One Interview Question

how you solve some problems to achieve an objective, something like this