To store a multi dimensional matrix in a single array. User will enter the index of the element and it will give the element to the user from the array.