Write a function that will be passed with two integer values, j and k and two functions, f and g, that don't take any parameters. Your function has to call them (and use the two integer values, accordingly), and returns a string that indicates which function has returned the larger number.
f returns the larger number, return the string f.g returns the larger number, return the string g.neither.whichIsLarger(5, 10, f -> f, g -> g) ➞ "g"
whichIsLarger(25, 25, f -> f, g -> g) ➞ "neither"
whichIsLarger(505050, 5050, f -> f, g -> g) ➞ "f"f takes variable j as its parameter and g takes k as these functions are invoked inside your function.