Salesforce Interview Question

leetcode questions , Time Complexity of Algorithms