#include #include char getColumn(char hats[50][50], int n, int m, int column, char *result) { for (int i=0; i