Salazar Slytherin's Locket

Problem Name:
Salazar Slytherin's Locket
Site:CodeForces
Links:
Tags:
Problem setters: