Some practice problems and my attempt/solution to them.