Need help understanding editorial of 1672F1
Problem link
I understood the editorial except constructing maximal B part. How is he constructing it? Explain please