What is the time complexity of the following code snippet in C?
#include <stdio.h>
#include <string.h>
void solve() {
char s[] = "scaler";
int n = strlen(s);
for (int i = 0; i < n; i++) {
s[n + i] = s[i];
}
s[n * 2] = '\0'; // Adding null terminator to form a valid string
printf("%s\n", s);
}
int main() {
solve();
return 0;
}