Please can someone help me to solve this problem.

Answer:
D
Step-by-step explanation:
the number of cubes in the middle represent n and its getting squared every time
1 4 9 are all perfect squares
the cubes on the outside of the squares represent the plus 4
have a great day :D