Problem

Return true if the same character appears twice in a row at least once.

Examples

  • hasDouble("hello") -> true
  • hasDouble("abc") -> false
Compile and test (Ctrl+Enter)