Beginner Level, Coding ProblemsConvert a 2D array into 1D arrayProblemHow to represent a 2D array with a 1D array?int[,] a = new int[2, 2] {{1,2}, {3,4} }; to int[] b = new int[4];Solution: