Capital One Interview Question

Find first common element in a stack