Beautiful Mirrors with queries

Problem Name:
Beautiful Mirrors with queries
Site:CodeForces
Links:
Tags:
Problem setters: