Fractal interview question

DTL related mid-hard level Questions