Brainlabs Interview Question

Usual space and time complexity discussion in coding and algorithms interviews