Pregunta de entrevista de UiPath

Some document traversal using javascript, technical discussion around implementation