Salesforce interview question

standard problems involving math and lists.