add new program: find the n appeared times in order array