HackerEarth AltF4 and the beetles problem solution - TheCScience