Input matrix:
Input an array of 1s and 0s
01010 10100 00001 10001 01000
Calculate