Nakshatech Interview Question

basic question