Please tell the doubts in this Question
I want to print the directions in this one like: -
1: If element is traversed while moving Down.
2: If element is traversed while moving Right.
3: If element is traversed while moving Up.
4: If element is traversed while moving Left.
And Also 3 2 7 before 2 3 9
As 9 came first while traversing.
That’s why
How can I do this one.

