Amdocs interview question

Implement Singelton, reverse a string