Build a validated add-sub calculator | Bytedance Interview Question