Amadeus interview question

Asked me about OOPs and strings