Dell Technologies Interview Question

code about comparison of two strings