HackerEarth Three Equal parts problem solution - TheCScience