Https Www Lintcode Com Problem