DSA Advanced Problems

Advantage Shuffle

Permute one array to maximize the number of positions where its value is greater than the corresponding value in a second array.