Cognizant interview question

Write a python code and explain it