Leetcode 397 Integer Replacement