Cognizant interview question

A java program that involves usage of array, pointer, loops.