Pregunta de entrevista de ActionIQ

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