Question d’entretien chez IBM

Write a function to parse an incoming URL string and validate it