Sort An Array Without Using Inbuilt Functional Interface