Write apply_n(f_name, x, n) that applies an operation n times to x, where f_name is "double" (×2) or "inc" (+1). Define the two small helper functions yourself.
apply_n('double', 3, 2)
→ 12apply_n('inc', 3, 2)
→ 5Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.