IBM interview question

Basic OOPS, Programming, Sorting etc