Ramp·Frontend Engineer·Technical Phone Screen
- A URL is split into individual characters and embedded inside specially nested DOM elements. Write a custom query selector that walks the DOM tree, finds the relevant elements, and reconstructs the URL by concatenating the characters in order. The selector syntax must support a wildcard '*' that matches zero or more characters in element names.
“I spent the first few minutes just trying to understand the setup.”