Add solution for leap year.

The logic for working out the leap year isn't that beautiful in erlang.