How to make instances around the grid?

By using Vertex Group, I think

Or using Geometry Nodes: