Meta Interview Question

A problem to count the numbers in the array