NTT DATA Interview Question

Basics in c and java