Tried to solve new task. Got TLE.