Google KickStart 2020B

Robot Path Decoding (11pts, 16pts)
This is a question from Google KickStart 2020 round B
Here is my code http://cpp.sh/2kwgx
It worked for the first Test set. WA for the second Test Set.
Can you give me some few TestCases why & where it will fail?

Thanks for answering in advance!