Add solution to problem #32

Added solution to problem #32