Training Naive Bayes only needs one pass over the data to count frequencies / compute means and variances, so it is linear, O(n). O(1) is not possible because every training example must be read.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.