Description Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1: Input: [,,] Output: Example 2: Input: [,,,,,,,,] Output: Note:Your algorithm should run in linear runtime com…