Nagarro interview question

Basic DSA and algorithms were asked.