Barclays interview question

Something about observables (angular)