Help me in solving JVTIMEMCQ4 problem

My issue

I am unable to solve the question

My code

11869

Learning course: Time complexity using Java
Problem Link: Practice Problem in - CodeChef