Nagarro interview question

Basic dsa question and in hr round basic hr questions