Wipro interview question

Sort the array without using inbuilt functions and some theoretical questions