Given the following problem specification:
You need to develop a system that reads character values from the user and store them in a 2D array of size [2][3]. Then find how many times the letter ‘a’ occurred.
Print the 2D array as a matrix, in addition to the answer.