test for find missing number algorithm