Diggy needs to help sir and bring him all the flowers from this palace.
For every 6 flowers 💮 he will give you a key 🔑 to unlock one of the treasure rooms.
In order to get the key 🔑, Diggy needs to find 6 exits where 6 flowers are located in:

Since there are 4 treasure rooms, Diggy needs to find 24 exits at all and then place the flowers as follows:

Once Diggy has a golden key, he can open the gate to the treasure room:
