My code gives right answer for even 2& 3 digit number, still it is not passing the test