nums holds n distinct numbers taken from 0, 1, 2, ..., n. Return the one number in that range that is missing.
Function
function solve(nums)
Example 1
nums = [3,0,1] โ 2
Submit also runs 3 hidden tests, including edge cases.