JustDial interview question

Simple program to alter an array