Palindrome Index

  • + 1 comment

    No need to add so many conditions. Only look at two char ahead. It will be reduces to two if conditions with two statements in each.