How to find a missing number in an array