Solve these string, subset, and date problems | Bytedance Interview Question