BlackBerry interview question

reverse the matrix