Capgemini Interview Question

1. Write a program for Largest and smallest number in array ? 2. Write a program for Duplicate element in the array? 3. how to write dynamic xpath ? 4. What is the process you followed in your organization? I forgot some questions