Visa2Fly interview question

1. The maximum subarray question 2. Remove duplicates without losing insertion order from int array 3. Find if a str is a substring of another string