How does this work for inputs like '[1]' where the 'missing number' is 0. Also, I've been seeing that if there aren't actually missing numbers, LeetCode expects the 'missing number' to be n+1, e.g. if the input is [0, 1, 2, 3], the missing number should be 4