Solve problem 33 using Lua.