Pergunta de entrevista da empresa highlevel

Java coding questions: Reverse the given string and print only repetitive characters and give the occurrence of vowels in repetitive character