Capital One interview question

Array manipulation, regular behavioral questions as well