adds Solution for Problem 1 in Go and Ruby