Kartavya technology pvt. Ltd. drive 7-dec-18

can anyone help me with the question asked in kartavya tech. drive/interview…?