ServiceNow interview question

Magic square and 2 D DP