Magical Girl, Devu, and Spirits

Problem Name:
Magical Girl, Devu, and Spirits
Site:HackerRank
Links:
Tags:
Problem setters: