CME Group interview question

Basic Time Complexity and DSA questions.