Senwell Solutions Interview Question

Sort the array without using array methods