hackerank problem to find index of character to
remove to make string palindrome. Solution is guranteed to exist