BMC Interview Question

Sort a given array using stream apo