Add solution to problem #28

Added solution to problem #28