Pergunta de entrevista da empresa OpenText

Program to find an index of an element in infinite array