Pergunta de entrevista da empresa Publicis Sapient

java OOP, SQL, algorithm question with string manipulation