3.6: Key Signature Calculation