Impetus Technologies interview question

Array coding questions were asked