Microsoft Interview Question

reverse integer with 2d array