April Challenge Chef and Digit

i am getting time limit exceed, please help me, my answer is totally correct but i am getting time limit exceed.

yeah the same thing is happening with me … :frowning:
do u know any reason ?

having the same problem

Read the guidelines.

You cannot ask hints to solve the problem.

//