IBM interview question

They asked me to write code for reversing the string, bubble sort and binary search