Key signature building

How to play ?

A key signature name and a mode (Major or minor) are given. The goal of the exercise is to find all sharps and flats of the key signature.

Parameters