Hackerrank Algorithms Implementation Forming A Magic Square Solution