Cognitive flexibility is how well the brain adjusts to new or unplanned events. It also involves how you respond to a sudden switch in tasks. Cognitive flexibility is important as the more agile it is, the easier it is for a person to multitask in your day-to-day life. It also has an impact on gross and fine motor development.
Some of the ways in which you can help your child in that regard are:
Exploring outdoors, pretend play, and throwing regular surprises.