Salesforce Interview Question

How did you derive your approach?