NTT DATA interview question

it was not much difficult