Solving the Go Challenge 1 in Erlang — Medium