Water Filling Challenge: Welcome to the exciting world of logic challenges, where your insight and observation skills are put to…