Replacing Elements

Problem Name:
Replacing Elements
Site:CodeForces
Links:
Tags:
Problem setters: