is this suppost te be hard to solve?
5. Rf8 is no better than 5. g8=Q.
White's attempt to keep the queen (rather than just win Black rook) doesn't work if Black replies either 5...Re7 or 5...Re1/Re2/Re3/Re4.
Well it wins in almost all variations