Capital One interview question

Look for common integer in two stacks