Innovaccer interview question

Find an element in infinite array