A word game

Problem Name:
A word game
Site:CodeForces
Links:
Tags: