in reply to Sorting Arrays Without using SORT function
Ask your teacher to give you the answer.
Or, just withdraw from the class now to save yourself the ignominy of flunking out, and also to save your teacher the time of further dealing with you.