reverse and replace hackerrank solution in python keep Wikiquote running!