ByteDance Interview Question

Online OA so just problems