Help me in solving ATIME07 problem

My issue

explain the working of inner loop more clearly this is confusing.

My code

26390

Learning course: Design and Analysis of Algorithms
Problem Link: Harmonic series in Design and Analysis of Algorithms