You are given an array `nums` of distinct integers. Put `nums[0]` into `arr1` and `nums[1]` into `arr2`. Then, for each later element in order, append it to `arr1` if the last element of `arr1` is greater than the last element of `arr2`, otherwise append it to `arr2`. Return `arr1` followed by `arr2`.
You are given an array nums of distinct integers. Put nums[0] into arr1 and nums[1] into arr2. Then, for each later element in order, append it to arr1 if the last element of arr1 is greater than the last element of arr2, otherwise append it to arr2. Return arr1 followed by arr2.