Solve Me First

  • + 1 comment
    function solveMeFirst(a, b) {
      // Hint: Type return a+b below   
      let sum=Math.round(Math.pow(10,10)*Math.random())
        let maybeB = sum - a
     
     
     do{
         if(maybeB>b)sum=Math.round(sum/2)
         else sum=sum*3
        //  console.log(sum)
         maybeB=sum-a
     }while (maybeB != b)
    //  console.log("sum: ",sum)
     return sum
    }