got storing, passing and printing array sorted
got storing, passing and printing array sorted