Capgemini interview question

DSA Algorithm linear and stacks and vector