Bending Spoons interview question

How to reverse the ACT Tree + writing a complex cache solution for AI