10 harshad Number solution in JavaScript