I am working on an algorithmic problem: https://leetcode.com/problems/integer-replacement/
Given a positive integer n, you can apply one of the following oper