Hackerearth divisibilty

here is the link for a problem on hackerearth.


i have solved the question and i think my answer is correct and should pass all the test cases but it is failing some test cases.please look for my solution.here is the link for my solution on coding blocks ide.

  1. You just need to check the last number’s lasst digit. If its 0 then its ok.
  2. For above point, minimium elements in array must be 2
  3. in your code, you are overflowing the answer.