BAE Systems interview question

Programming