in the sample output the max strength is printed 13. I cannot understand how is it 13 as while its journey in maze it just encounters 3 *(1 in first line and 2 in 3rd line) and its energy increases by 4 with each so it should be 12??
SO KINDLY EXPLAIN THE STRENGTH IN SAMPLE OUTPUT
Maximun strength printing
@shivanshmittal25 hey Shivansh go through this link you will get to know how this question input is working.