Draw a line starting from the numbers in the matrix below following the rules below:
- Lines should be positioned in the middle of the cells of the matrix.
- Lines can only run horizontally and vertically (no diagonals allowed)
- Lines can only change direction (from horizontal to vertical or vice versa) in the middle of the cells of the matrix.
- Length of the line is indicated by the number at its starting point.
- Lines cannot cross or run over each other.
Just to clarify the rules detailed above, here is a small example:
So your task is to draw the lines accordingly in this matrix: