Driver code
let a = [ [ 1 , 1 ] , [ 1 , 1 ] ] ; let b = [ [ 1 , 1 ] , [ 1 , 1 ] ] ; let c = [ [ 2 , 2 ] , [ 2 , 2 ] ] ; let k = 2 ; if ( isProduct ( a , b , c , k ) ) document . write ( " " ) ; else document . write ( " " ) ;