NTT DATA Interview Question

Nothing related to AEM, just JavaScript handson machine coding