title: Check a string for consecutive repeated characters
body: <p>It is asked in an interview to write the code in Java to display the string which doesn't have consecutive repeated characters.</p>
  
  <p>E.g.: Google, Apple, Amazon;
  It should display "Amazon"</p>
  
  <p>I wrote code to find continues repeating char. Is there any algorithm or efficient way to find it?</p>