Cognizant Interview Question

Cond code, file match logic