Meetri Infotech interview question

Sort Array without using library.