Solving a Functional Equation with Functional Programming

Functional equation question seen on Twitter : This is my general solution, computed in Mathematica: a functional programming language. Scroll through the PDF for details.