Pergunta de entrevista da empresa OYO

Clone a stack(with minimum time and space complexity)