You did not pass.
987654321 is how I expect it to work though without the 0 in the beginning as you should return a positive integer.
That was not a part of the question, so I would say that the result should still start with a 0.
the positive integer shouldn't have a leading zero I don't think. It's at least up to interpretation.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.