Generating Theoretical Spectrum Problem

Updated to write as a function.
Cyclopeptide Sequencing

Solution to Stepic Textbook Problem 2D: Cyclopeptide Sequencing