added solution to TopCoder CaptureThemAll