Given an array nums of n integers where nums[i] is in the range [1, n], return an array of all the integers in the range `[1, n]` that do not appear in nums.
Example 1:
Input: nums = [4, 3, 2, 7, 8, 2, 3, 1]
Output: [5, 6]
Explanation: n = 8, range is [1, 8]. The numbers 5 and 6 are missing.
Example 2:
Input: nums = [1, 1]
Output: [2]
Explanation: n = 2, range is [1, 2]. The number 2 is missing.
n == nums.length1 <= n <= 10^51 <= nums[i] <= n