The Magician

Problem Name:
The Magician
Site:HackerEarth
Links:
Tags:
Problem setters: