Telesoft Labs interview question

Array program, string program, aptitude problem ,SQL queries