HackerEarth The furious five problem solution - TheCScience