Complete the following recursive method that returns a string
where all neighboring repeated characters are removed.
"help" -> "help"
"happy" -> "hapy"
"buffalo" -> "bufalo"
For this problem we're expecting only a method.Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.
StringremoveRepeats(Stringphrase) {
return""; // You may need to remove this starter code