Leetcode Find Missing Number In Sorted Array In Python