Barclays interview question

a lengthy and complex array program ( in c or java)