I think there is an issue in the description of sample input and output. They should Inverted.
Indeed, there seems to be mistake in the description, the input is a string and output should be the corresponding integer
This website is dead now. All they focus on now is Scalar Academy.
I submitted an edit, lets see if they care