Solutions to RosettaCode problems