Report question

Question: How to group identical elements in Ruby array