Adding code for Collatz sequence generator using Lambdas.