set A
added set B
added set C
part C
string manipulation done
my functional functions
filter list comprehension
reduce simplified reduce(fun,lt) is good enough.