java home work of group by Boom