Nagarro Interview Question

- Time complexity - Which time complexity is best and why