counting starts (usually the output is the list of persons being eliminated when person drops out of the circlecounting starts again from the person who was on his left (assuming you go around clockwisehere' an example there are seven people numbered through and you start at and count off by threes people will be eliminated in the order number will be left let' try something little differenta two-dimensional linked listwhich we'll call matrix this is the list analogue of two-dimensional array it might be useful in applications such as spreadsheet programs if spreadsheet is based on an arrayand you insert new row near the topyou must move every cell in the lower rows * cellswhich is potentially slow process if the spreadsheet is implemented by matrixyou need only change pointers for simplicitywe'll assume singly linked approach (although double-linked approach would probably be more appropriate for spreadsheeteach link (except those on the top row and left sideis pointed to by the link directly above it and by the link on its left you can start at the upper-left link and navigate tosaythe link on the third row and fifth column by following the pointers down two rows and right four columns assume your matrix is created with specified dimensions ( by for exampleyou should be able to insert values in specified links and display the contents of the matrix