Avenza Systems interview question

Array manipulation and algorithm problems.