Help me in solving DSAAGP50 problem

My issue

why do i get wrong answer

My code

#include <stdio.h>

int main() {
    int arr1[] = {1, 2, 3, 4, 5}; 
    int arr2[] = {6, 7, 8, 9, 10};
    int n = 5;  
    int sum[5];
    int i;

    
    for(i = 0; i < n; i++) {
        sum[i] = arr1[i] + arr2[i];
    }

    printf("Sum of the two arrays:\n");
    for(i = 0; i < n; i++) {
        printf("%d ", sum[i]);
    }

    printf("\n");

    return 0;
}

Learning course: BCS301: Data structures
Problem Link: https://www.codechef.com/learn/course/abesit-dsa/ABESITDS06/problems/DSAAGP50