$ shortest path string

you can show final displacement 4 &2 , 4 show east and 2 show north in the run code you can say that, but i am saying 5 letter have east and 2 letter have south then what the problem was there please explain.

Maam i am unable to understand what u are trying to ask
could u quote the input string u are talking about

and the expected answer

so that ican understand what uare talking of

Thanks

@Aarti.com
Maam i am unable to understand what u are trying to ask
could u quote the input string u are talking about

and the expected answer

so that ican understand what uare talking of

Thanks