IBM Interview Question

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