You do not need to read or print anything. Your task is to complete the function singleNumber() which takes the array as input parameter and returns a list of two numbers which occur exactly once in the array. The list must be in ascending order.
Expected Time Complexity: O(N) Expected Space Complexity: O(1)
1 <= length of array <= 106 1 <= Elements in array <= 5 * 106