I dont know if you have ever worked with a portfolio management/performance softwre but when you run intervals on a portfolio it will show you bgn balance, dividends, interest, capital appreciation, deposits/withdrawals, and ending balance and then gives you a periodic return that can be linked to find the TWR.
Long story short this is how I got the correct answer for this question. In my opinion the best way to set up these problems is to set up intervals like these so you can see the actual net inflows and outflows on a year by year basis and then enter them into your calculator. Its tricky but mapping it out year by year is the best way to go.