Watersheds solutions

Watersheds was solved using Prolog by 1 contestant.