educative.io

How to analyze time complexity of this question?

How to analyze time complexity of this question? Can anyone help?