Walmart Interview Question

Generate all possible ip address given an ip address