A Game of Strings

Problem Name:
A Game of Strings
Site:HackerEarth
Links:
Tags:
Problem setters: