text: console.log("------------Test start--------------")
  // #003#: theCore_Candies 
  function theCore_Candies (n, m) {
      let output
      if ( !(m%n) ) return output = m
      if ( (n>m) ) return 0
      else{
          // let i=0; 
          while((m%n !== 0) & m > n ){
              m -= 1
              // i++;
              // console.log(i, m )
          }
          return output = m
      }
  }
  let n, m
  n = 10
  m = 5
  console.log( theCore_Candies(n, m) )
  console.log("------------Test   End---------------")