You don't need the queue. Circle the seed, keep circling any pixel that touches a circled one and is close enough, and stop when nothing new joins. The region you get is the same whatever order you go in. The page then turns your circles into the table you write in the exam.