
grid 2중 순회function findColumnWidth(grid: number[][]): number[] {
const colWidth = []
for(let col = 0; col < grid[0].length; col++) {
let longest = 0
for(let row = 0; row < grid.length; row++) {
const cur = grid[row][col]
const curLen = String(cur).length
longest = Math.max(longest, curLen)
}
colWidth.push(longest)
}
return colWidth
};