What will be the output of the following code snippet?def solve(a):a = [1, 3, 5]a = [2, 4, 6]print(a)solve(a)print(a)
#include <stdio.h>void main(){int i = 0;while (i < 7){i++;printf("Avatar\n");while (i < 10){i++;printf("Avatar2\n");}}}