Domanda di colloquio di Snackpass

Interview question revolved around writing an iterative or recursive function to validate an ipv4 address