Implement several OA simulation problems | Bytedance Interview Question