Blue Yonder interview question

Write the program for binary sorting