Problem: Please find the problem here. Solution: This is simply mapping from protein to their mass and then sum it up Code: