DXC Technology interview question

Based on array doesn't remember.