Correctness to ValidPalindrome code

The 'left' and 'right' iterator should move after the comparsion of (*left != *right). Otherwise it will loop there forever.