HackerEarth In search of Samosa problem solution - TheCScience