Novatore Solutions interview question

Sort array without using built-in methods