If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: https://discussions.unity.com/t/481379
How to report your problem productively in the Unity3D forums:
Since such a thing would NEVER just be code (might only be 10% code, the rest of it scene setup and assets), it’s probably best to start by googling for some tutorials, such as:
unity pickup powerup
and
unity timer countdown
And just combine your learnings from those two things to do what you need.