Barclays interview question

Leet code medium questions with quant devs