Barclays interview question

What is the complexity for two sums?