Meta Frontend Interview Phone Screen

I’m about to have a job interview soon, so I’m sharing a frontend phone interview from before. It failed inexplicably. I feel like frontend is unpredictable, maybe I should focus on interviewing for a Product Engineer position.

  1. find the corresponding node in two identical DOM tree

  2. Filter an array based on another array. How to optimize.