Topic: Backtracking Problem / Level: intermediate

Problem: Generate all distinct ways to fill a pool with water based on specified conditions.

Run the code to see the output here...