All O`one Data Structure(LeetCode 432):

Problem