💡 Painter Problem

hey
only able to get one test case to be correct can you please help me with my code


this is the code that i made and was able to come up with

check line 45 and 47 of this code with ur code