Capgemini Interview Question

based on react and dsa