Pergunta de entrevista da empresa Motive

Generate all the possible IP addresses from a given string.