Formando um Hackerank Magic Sqare em JavaScript

8 3 4
1 5 9
6 7 2
Muddsar Rasool