Pergunta de entrevista da empresa BT Group

Core java: occurrence of characters in a string, reverse a string