Kantar Interview Question

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