Red Ventures Interview Question

Can you explain why you took this approach?