Traversing and Combining Submatrices in JavaScript | CodeSignal Learn