TopCoder: SRM621