Solved Restore IP address problem with DFS
Solved Restore IP address problem with BFS method