Text Dollar coding challenge from CodeEval