It's easy to invert a binary tree of numbers. But I'm not sure how to do it in general. Maybe if they're strings I'd use reverse?
reverse