HackerEarth Divide arrays problem solution - TheCScience