Implement wildcard querySelector to extract URL | Ramp Interview Question