Cognizant interview question

simple sql queries, anagram program, string handling in python