Pergunta de entrevista da empresa Cognizant

Introduction Python output One basic logical question.