Hackerrank Challenges - Forming a magic square

{CM} I read a little about the topology of magic squares before jumping onto it