Toptal Interview Question

To explain time complexity of an algorthm