Add solution to problem #31

Added solution to problem #31