How to use OnActorBeginOverlap c++ code?

can you help me with the signiture of “YourFunction” because I am doing it like in the tutorial and it doesn’t compile.