In my opinion, this problem should be in the bronze recursion section because the problem doesn’t really use flood fill as it does with casework and recursion.
Are you sure about that? I initially solved it with floodfill myself.
It is just checking all of the possible cases so I thought that maybe it is just basic recursion. That is what I did except I made sure that I didn’t visit more than once.