CodeArray Interview Question

Sort array without using in build function