Capital One Interview Question

Some random LC style question