OpenText Interview Question

Program to find an index of an element in infinite array