Cognizant interview question

In the technical round they asked a question from Python and SQL.