HackerEarth Compare Strings problem solution - TheCScience