Arista Networks interview question

Some simple checking operation on a string (const char*) with C