Hansa Solutions interview question

Develope a code to sort sub arrays