Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can you think of a dynamic programming solution to this problem?
Can you use a bitmask to represent the state of the slots?
Solve with full IDE support and test cases