Infosys Interview Question

Technical question around react and java