Magical pattern

Problem Name:
Magical pattern
Site:HackerEarth
Links:
Tags: