Pregunta de entrevista de Dropbox

Depth-first search to find all elements in a DOM tree with a given class.