coding:-
1 there is a matrix of 7R 4 C with a character arragement as constrant
Mat:- A B C D
E F G H
I J K L
M N O P
Q R S T
U V W X
Y Z - -
Q1. find how many direction to make the word
tescase 1 :- input :-"RVZ" :- Output:-[5D 1R,1D,1D]
start from A-R we need 5D and 1R and then from R to V need 1D and from V to z need 1 D
tescase2:- inpuz:-"SZE" :- output:- [[5D,2R],[1D,1Left,1D],[6up,1Left]]
need to handle all corner case and dont choose the "_ "path in matrix just like in case of SZE