why my solution is wrong ?

it shows the wrong answer. please correct me with the solution.