You are given four integer numbers as input, and you are given function maxOfTwo(a, b) that takes two integers and returns the maximum of them.
You need to define function maxOfFour(a, b, c, d) that takes in four integers and returns the maximum of them.
You are not allowed to use if conditions or any comparison logic, you are only allowed to call maxOfTwo(a, b) that returns the maximum of two numbers inside your function.
1 2 3 4
4
50 10 60 20
60
100 1000 10 0
1000
Test your solution here
when it passes, copy it and submit it here so your coach can grade it.