Minimum Moves to Clean the Classroom

Solution Code

Time Complexity

O(M * N * 2^L)

Space Complexity

O(M * N * 2^L)