Sherlock and Magic

Problem Name:
Sherlock and Magic
Site:HackerEarth
Links:
Tags:
Problem setters: