ActionIQ Interview Question

Basic coding question -- how do you do "group by" operations?