it is giving TLE in some of test cases
here is link to my code https://cses.fi/paste/3b8de947940f05b018bda3/
Can anyone help me with the josephus problem II from cses set
it is giving TLE in some of test cases
here is link to my code https://cses.fi/paste/3b8de947940f05b018bda3/