My Doubt is in piyush and magical park

I think i didn’t get two things from question

  1. if there is # in sample input than how can he escape the park as he can’t move forward once he encounters #.
  2. how is the maximum strength that he can gather in the park in a new line is 13 in the given sample output.

hey @shubham.mehla2000, consider the following explanation

  1. once he encounters #, he will move to next row.
  2. Piyush && magical park