UBS interview question

Python questions included palindrome, anagram