Cognizant Interview Question

Introduction Python output One basic logical question.