Help me in solving LPYAS164 problem

My issue

hidden test case is wrong

My code

#include <stdio.h>

void patternRhombusCompliment(int N) {
    // Top half of the pattern
    for (int i = 0; i < N; i++) {
        // Left stars
        for (int j = 0; j < N - i; j++) {
            printf("*");
        }
        // Middle spaces
        for (int j = 0; j < 2 * i; j++) {
            printf(" ");
        }
        // Right stars
        for (int j = 0; j < N - i; j++) {
            printf("*");
        }
        printf("\n");
    }

    // Bottom half of the pattern
    for (int i = 0; i < N; i++) {
        // Left stars
        for (int j = 0; j <= i; j++) {
            printf("*");
        }
        // Middle spaces
        for (int j = 0; j < 2 * (N - i - 1); j++) {
            printf(" ");
        }
        // Right stars
        for (int j = 0; j <= i; j++) {
            printf("*");
        }
        printf("\n");
    }
}

int main() {
    int N;
    scanf("%d", &N);

    patternRhombusCompliment(N);
    return 0;
}

Learning course: Roadmap to 3*
Problem Link: https://www.codechef.com/learn/course/klu-roadmap-3star/KLURMP300B/problems/LPYAS164