Drivers code
let n = 4 ; let m = [ [ 1 , 2 , 3 , 5 ] , [ 2 , 3 , 5 , 8 ] , [ 3 , 5 , 8 , 0 ] , [ 5 , 8 , 0 , 9 ] ] ; if ( checkHankelMatrix ( n , m ) ) document . write ( " " ) ; else document . write ( " " ) ;