Added challenge #12 (intermediate) in Python