Given a list of objects, use stream API to group objects based on place, after that convert the same code to SQL.
Anonymous
For Stream APIs, I used groupingBy, and SQL is pretty simple with the GROUP BY clause
Check out your Company Bowl for anonymous work chats.