time limit exceed

DFS cannot pass large case