update sort array of 1, 2 and 3
distinct subsequences
update sort integer array of 1,2,3