NVIDIA Interview Question

1. Write recursive function that prints array from begin and end until they meet. follow up was to write it from the middle out. 2. The Lucky soldier problem.