Balanced Unshuffle (Hard)

Problem Name:
Balanced Unshuffle (Hard)
Site:CodeForces
Links:
Tags:
Problem setters: