There is a test case failed.
Shouldn't my answer valid?
There are three 1's in the input, but two in your output. You turned one of the 1's to 4.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.