Finly interview question

programs on array