9. Take the Lead
In this problem, you’re asked to enter your own APL function, without giving it any arguments. Your function will be checked by the APL Challenge system using several tests to see whether it is correct.
Using ≢ from problem 1, ⌈ from problem 2, and ⍴ from problem 3, write a function that takes a width as left argument and a text as right argument, and gives a text of stars (*) whose length is half the difference between the width and the text’s length, rounded up.
For example.
10 {answer} 'HI'
****
In the above, the text’s length is 2, the difference between the width (10) and the text’s length is 8, and half of that is 4.
9 {answer} 'APL'
***
10 {answer} 'APL'
****