NIIT Limited Interview Question

Not so tuff or easy but ok