Staff: Mentor

Looks OK to me (I haven't checked the numbers, just skimmed the logic), but your comment about reversibility/irreversibility makes me wonder if there is not some context to the question which makes it more complicated. But if treated literally as posted - its OK.