Capital One Interview Question

Look for common integer in two stacks