Design adjustable ID allocator | Pinterest Interview Question