J.P. Morgan interview question

Questions dealt with big o and array .