ByteDance Interview Question

A case about a company