We create a char table: 26 cells, initialized with a dot in each. We iterate through all the programs and mark all the first letters in the corresponding cell of the table. We output the 26 cells of the table in 5 rows.