Help with BNRStockHolding

I am new to programming and may have finally stepped in over my head! I have managed to do most of the challenges to this point, but can’t wrap my brains around this one. Is there a place to see the solution?

I just discovered this helpful solution under ch 21
"Soution for Holding Portfolio Challenge from Ch21 in 2nd Ed"