Infosys interview question

Simple question from DSA mainly from array linked list and string