What's the name of the arrangement of sharps or flats at the beginning of a piece of music?

The correct answer is "The key signature"

working