Pergunta de entrevista da empresa Meta

recursively remove all adjacent repeating characters from a string