Goldman Sachs Interview Question

Solving a coding problem about finding common element between 2 arrays.