TLE, need more efficient algorithm
easy, good