The answer is coming wrong

My apporach seems right, what is wrong in the code?

@raghavkhaterpal
Check now