# Sort the array in ascending order as the sequence does not matter we only have to # pick up a subset.