C3,Q1, create three stacks from one array