HackerEarth Equalize strings problem solution - TheCScience