Given an unsorted array of integers, find the smallest missing positive integer in O(n) time using cyclic sort idea.
nums = array of integers
The smallest missing positive integer
Example 1:
Input:
nums = [1,2,0]
Output:
3
Explanation:
1 and 2 are present, so 3 is missing.