On LeetCode, in spite of my answer matching the desired