ByteDance interview question

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