Solution:
The possible moves correspond to the vectors ±⟨2,0,0,0⟩, ±⟨1,1,1,−1⟩, and their permutations. It's not hard to see that these vectors form the vertices of a 4-dimensional hypercube, which motivates the change of coordinates
(x1,x2,x3,x4)⇒(2x1+x2+x3+x4,2x1+x2−x3−x4,2x1−x2+x3−x4,2x1−x2−x3+x4)
Under this change of coordinates, Fred must travel from (0,0,0,0) to (20,0,0,0), and the possible moves correspond to the sixteen vectors ⟨±1,±1,±1,±1⟩. The new x1-coordinate must increase 30 times and decrease 10 times during Fred's walk, while the other coordinates must increase 20 times and decrease 20 times. Therefore, there are (1040)(2040)3 possible walks.