DIgit DP ( 1 test case not passing)

sir can u please tell me why 1 test case is not passing i have outputs and they semm to be quite fine
here is my code which is quite simple to understand please reply ASAP

You can’t do ( r - ( l -1 ) ) here , because it will lead to TLE.
You have to take both both together and then apply the logic.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.