Implemented solution for 3-3 in python (not yet d).