X1525: Count number of dead cells in column

Complete a function that traverses a 2 dimensional array of booleans named cells and counts how many values are in the array that are dead in a particular column. You don't need to traverse the full 2d array, just one column. A dead cell is a cell with value of false.

Examples:

countDeadCellsInCol({ {true, false}, {false, true}},0) -> 1
countDeadCellsInCol({ {true, true}, {true, true}}, 1) -> 0
countDeadCellsInCol({ {false, false}, {false, false}},0) -> 2

Your Answer:

Feedback

Your feedback will appear here when you check your answer.