my first PE problem in a long, long time. What better way to spend Spring Break in grad school than to solve PE problems ?! :D
Anyway, runtime is < 1s.