https://codeworld19.blogspot.com/2020/06/magic-spells-in-c-hacker-rank-solution.html