formatted reverse words based on gcj africa 2010 b