Add solution to problem #33

Added solution to problem #33