NTT DATA interview question

OOPs concept