JPMorganChase interview question

for the hacker rank it was array questions