Unable to understand the output for N=4

In the given problem, output for N=5 is given, however, I am not able to figure out what will be the output for N=4.