HSBC interview question

They asked about array and basic math.