Recursion

Max Profit with Cooldown

Test your code to get an output here!