GadgEon interview question

Find time complexity of a program