OodlesTechnologies interview question

Sort the array without using inbuilt methods