Solve problem 81 using Lua.