Question d’entretien chez bp

DSA question medium difficulty. and system design.