Hackerrank Playing With Characters problem solution in c programming - TheCScience