Time Complexity In C