Getting wrong answer


please help me where i am doing wrong

update int to ll
and if still there is WA share approach that u have used to code it