Kantar interview question

basic programing question like find the frequency of asked number in an array