Recursion

Max Profit with k Trades

Test your code to get an output here!