Amazon interview exercises made in lua