rewrite leetcode restore ip address