ByteDance interview question

HM: prefer width or depth when working