CONVSTR wrong answer

Link to my solution for the problem “CONVSTR”.kindly help me out in finding out the error.