problem 30

pretty straight forward. result in <1 second.