MindGate Solutions interview question

He asked 5 Programs. Find duplicate, api all, array reverse without using Reverse().