Beginner here, working on a 2d arrays exercise.
Given the elements of a 2d array display the directions to exit.
Input: dimensions and array elements 4