Missing Number Problem In Leetcode Solutions Python