Pergunta de entrevista da empresa Oracle

Data structure with time and space complexity