Write an application that creates and returns a one-dimensional array containing all the elements in the two-dimensional array. Store the values in a row major format. For testing purposes, you may do a compile-time initialization of a 6 x 3 two-dimensional array. Display both the two-dimensional and the one-dimensional array.