title: How to find characters of a string that did not changed position after resverse
body: <p>I want to know how can I print the number of characters of a string that does not change its position after reversal of that string in JavaScript.</p>
  <p>Is there any way?</p>
  <p>data stream - <code>alphxxdida</code> . After reverse  - <code>adidaxxhpla</code>. so here x and a doesn't changed it position. How can I do this ?</p>
  <p>Input - alphxxdida</p>
  <p>Output-4</p>