Types: N: int, a: List[int], b: List[int]
Ranges: 1 ≤ N ≤ 10^5, 1 ≤ a[i], b[i] ≤ N, a[i] ≠ a[j] for all i ≠ j
Addtl Info: All input is integers