Lua program
Given a number NN, generate a star pattern such that on the first line there are NNstars and on the subsequent lines the number of stars decreases by 1. The pattern generated should have NN rows. In every row, every fifth star (*) is replaced with a hash (#). Every row should have the required number of stars (*) and hash (#) symbols. The code stub provided here is to be used. It calls the function generatePattern(). Your task is to complete the function. Input: First line will contain TT, number of testcases. Then the testcases follow. Each testcase contains a single integer NN Output: For each testcase, print the star and hash pattern. Constraints 1â€Tâ€251â€Tâ€25 1â€Nâ€1001â€Nâ€100 Subtasks Subtask #1 (40 points): Nâ€15Nâ€15 Subtask #2 (60 points): original constraints