text: int numberOfSteps (int num){
      int count = 0;
      while(num){
          if (num & 1){
              num ^= 1;
          } else {
              num>>=1; 
          }
          count++;
      }
      return count;
  }
  