TCS Interview Question

sort the array without using inbuit function