RtBrick Interview Question

Id allocation, and deallocation for user