NTT DATA Interview Question

scope of variable