Whatnot interview question

Validate a nonogram given a 2D matrix