Leoforce interview question

Asked few sorting algorithms codes