Edit: There will be a bonus of -20 for random masking
Hello fellow Whistleblowers and carriers of secret knowledge.
I am due to an interview by mail and I - of course - cannot say specific names in full length. But as I want to disclose it in a rather not-so-obvious-way I need your help.
I will provide these names in the form of
"evil_company_that_makes_me_shiver"
but surely I do not want to spell it out completely. Your task to help me and the whole world is that you provide a nice program that turns the above into
"ev**************************"
or
"**il************************"
or even
"****_c**********************"
I think you get it. But there is one flaw: I want to disclose the name in total, so I need to pass the number of occurrences and the word itself to the script and it will disclose the letters bit by bit. An example could be
~$ ./whistle NSA 3
> "N**"
> "**A"
> "*S*"
or
~$ ./whistle nuclear 3
> "nu*****"
> "***lea*"
> "**c***r"
or
~$ ./whistle nuclear 2
> "nuc****"
> "***lear"
I hope you can help me and as we know that size matters the shortest code wins. Help make this world a better place!