Pergunta de entrevista da empresa Arista Networks

Final Round Question: Design a program/library which will give return to you unique ids (think like pids). we should be able to return the ids once we are done using them. So you will need to keep all the ids that have been assigned and return a non-assigned id. How much memory will such a program consume ... Assume 32-bit integers as ids