#include <stdlib.h>

int **validity = malloc(sizeof(int*) * BOARD_SIZE);
for (int a = 0; a < BOARD_SIZE; a++){
  validity[a] = malloc(sizeof(int) * BOARD_SIZE);
}

for (int i = 0; i < BOARD_SIZE; i++) {
    for (int j = 0; j < BOARD_SIZE; j++) {
        int current_val = board[i][j];
        int valid = 1;
        
        for (int k = 0; k < BOARD_SIZE; k++){
            if (board[i][k] == current_val || board[k][j] == current_val){
                valid = 0;
            }
        }
        validity[i][j] = valid;
    }
}
Your task is to write a code fragment that creates a new array of int arrays iff the same size as board. Each element in the sub-array of ints is set to 1 iff the number at the same index in board is valid (unique in the row and column it is located in), or 0 if it is invalid. Name this new board validity.