A company has collected some data (stored in Table 1) for promotion of their products. Every row in the table has information about the number of people willing to attend the promotion on Saturday and Sunday, respectively, in a given city. For example, take the first row. According to Fantabook, 20 and 30 people are willing to attend the promotion on Saturday and Sunday, respectively, in Chennai.
The pseudocode below is used to process the data in this table. Which of the following is correct?
```
Procedure bestDay(Z)
countSat = 0, countSun = 0
while(Table 1 has more rows) {
Read the first row X from Table 1
if(X.City == Z) {
countSat = countSat + X.Saturday
countSun = countSun + X.Sunday
}
Move X to Table 2
}
if(countSun > countSat) {
return("Sunday")
}
return("Saturday")
End bestDay
```