Capital One interview question

Find first common element in a stack