Nagarro interview question

- Time complexity - Which time complexity is best and why