HackerEarth Shil and Lucky String problem solution - TheCScience