Confirm shows the user via out parameter a prompt in order to confirm the action. The input is
read via the in parameter and keeps retrying until "yes/no" or "y/n" is found.
Blocks until correct input is given or the number of retries exceeded MaxRetries.