Getting wrong answer in sample test case

where am i going wrong in the code

@singh.vishen09
check out this solution