Limits 1s, 512 MB
You are given array A and array B consisting of n elements. You can permute the elements in each of these arrays. However, you are not allowed to swap elements between A and B.
This is a companion discussion topic for the original entry at https://toph.co/p/sumthewhat-s