Pls RESOLVE MY DOUBT

I am not able to take target as input as it is given in question
Pls make suitable changes