# 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