Meta interview question

get element in dom tree and find corresponding element inside another tree. implement "expect" function as in unit tests design "combo box" element