Arista Networks Interview Question

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