American Express interview question

What is the big O notation for the array coding problem