Cognizant interview question

Puzzle Python logic Self intro Flexibility Any questions