Given a list of integers, write a function to find the longest subarray that contains only 2 unique integers.
[1, 2, 3, 2, 2, 1, 4, 5]
[2, 1, 4, 5]
Bot