Magic square constraint

This question has been asked before.