Solved Water Level Puzzle in Erlang