PR number , Digit Dp

It seems like everything is working fine but Getting Wrong ans. Please help


u can refer to this code