Google Interview Question

A magic square algorithm.