Accenture interview question

Coding questions: 1. Intersection of two array. 2. Convert the digits in a string into integer.