Adding solution to problem 4 in lua.
Adding solution to problem 7 in lua.