SLB Interview Question

Data structure and algorithms, time and space complexity