Add solution to 'Reverse groups'