Andrey Kim's submission of Chef and Magic Arrays | CodeChef