pattern 3 nested loop
home