Input matrix:

Input an array of 1s and 0s