The correct option is C 21
As per the problem, the cube is divided into 125 equal small cubes. That means, the cube is being cut into 5 slices horizontally and vertically resulting in 5x(5x5) smaller cubes.
12 corner cubes would have atleast 2 colored faces. 3 cubes would have Green + Blue and 3 cubes would have Green + Yellow. Therefore, total number of cubes with atleast two coloured faces would be 12 + 9 = 21.
Hence, the correct answer is (B).