How can I do that? Please help asap

I also want to print directions in this Question, 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.

How can I do that?
Please help asap

hello @cbcao263 could you please elaborate your doubt ?
you have doubt in which question ?
please mention the question name

This is the Question
And I have printed the elements.
Now I want to print the directions with that too.
Please tell.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.