ByteDance Interview Question

implement a Symbol usage, it like a build-in feature.