ByteDance Interview Question

HM: prefer width or depth when working