Assume that you are given a matrix M. Write a function called
cornerDiff
that returns the number in the upper left hand corner subtracted from the lower right hand corner.
cornerDiff(a) returns 8 because 9 - 1 = 8.
cornerDiff(b) returns 7 because 12 - 5 = 7.