Frage im Vorstellungsgespräch bei IBM

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