Meta interview question

A problem to count the numbers in the array