Input array:

Expected output:

    

**********

**> v**

** **** **

** **** **

**^ <**

v*********

Input array:

Expected output:

    

> vd

> <