Given a matrix of rows and columns which contains distinct integers and you are given an integer K and you need to print both the diagonals crossing through the given element K, you can always assume that the given element always exists in the matrix. (solve in javascript)
k = 11
-----------
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16