#The Universal Solution For Water Jug Problem
The program can solve almost all kinds of water jug problems and find all possible solutions to it.
Update:^That's what I thought.But on testing found some real Problems.Will correct them.
Update 2: Here is a new one written in haskell, cleaner and working.