trivia: Added lua version of trivia

There is some interesting things in the Lua version, because Lua indexes arrays from 1 by default.
I have tried with the reference random sequences, and it generated the reference output.