Ledgent Technology interview question

How would you write this function so that it could be used differently each time.

Interview Answer

Anonymous

3 May 2019

With the typical info about variables determining outcome

1