Correct answer: 2
Solutions of f(f(f(x))) = x include fixed points of f. On the branch x >= 1, f(x) = 2x - 2 has fixed point x = 2, which gives f(f(f(2))) = 2. For x < 1, f(x) = 0, and following the chain f(f(f(x))) can equal x only at x = 0. Checking both branches carefully yields exactly two solutions.