In the following question, a matrix of certain characters is given. These characters follow a certain trend, row-wise or column-wise. Find out this trend and choose the missing character accordingly.
How many A's are there in the following series which are immediately followed by B as well as immediately precedeed by Z ? A M B Z A N A A B Z A B A Z B A P Z A B A Z A B