Integer Replacement Leetcode Javascript Roadmap