IBM interview question

Array sorting and string questions and on OOPS - Interface