HackerEarth Troubling Triple problem solution - TheCScience