American Express Interview Question

What is the big O notation for the array coding problem