LeetCode Solutions/LeetCoding Challenge/February 2020 LeetCoding Challenge/Broken Calculator.java
<reponame>DevashishPathrabe/LeetCodeclass Solution {
    public int brokenCalc(int X, int Y) {
        int result = 0;
        while(X < Y){
            result++;
            if(Y%2 > 0){
                Y++;
            } else{
                Y /= 2;
            }
        }
        return result + X - Y;
    }
}