Pregunta de entrevista de Thoughtworks

Write a C program to print the common elements of two arrays in a third array.