LeetCode
Defanging an IP Address
Click
here
for an explanation.