I am new to ruby and trying to group array of objects. I have below 2 inputs:
Inputs: DEPT = { main_dept1: [\'A\', \'B\', \'C\'], main_dept2: [\'D\'