Refer to the given flow chart and answer the following questions.

Select the correct option to fill the empty spaces d, e, f and g in the given flow chart.
| d | e | f | g | |
|---|---|---|---|---|
| A | Ostrich | Penguin | Lizard | Pigeon |
| B | Pigeon | Ostrich | Penguin | Lizard |
| C | Pigeon | Penguin | Ostrich | Lizard |
| D | Penguin | Pigeon | Lizard | Ostrich |
c