Salesforce Interview Question

standard problems involving math and lists.