I did the solution of this challenge exactly as it was explained but it shows run-error in 2nd test case.