Barclays interview question

Asked me to write difficult programs