Capgemini Interview Question

DS and Algorithm