Add lua solution for p1 question