Please explain the sample test case. The problem is not clear to me.
PIYUSH AND MAGICAL PARK _ problem in understanding the question
intially pyush has some energy and this energy is needed to be positive every time now when pyush walk it losses 1 unit of energy and when he encounter . then losses and simply gain 5 amount of energy for another symbol
now if it encounter a block sign then it will switch to next row and switching didnt take any energy
so now u have to calculate wheather pyush will get out of park or not remember to move he need positive energy all time and if come out then what will be the energy
@sayedwajahatullah1234 hey sayed here the link in which the sample test case is explained in brief link.