Given an array containing n distinct numbers from 0, 1, 2, ..., n, find the one that is missing.
3,0,1
2
[3, 0, 1]
n = 3
0
n
[0, 1, 2, 3]