Intuit interview question

Questions about time complexities were asked after solving DSA Ques