add alt solution for exercise on kmer

add solution using a defaultdict