Revert to using Vec<char> and reversing, rather than use DList<char> and mutating.
Change coding style: attach type annotation to collect().