HackerEarth Likeable arrays problem solution - TheCScience