Challenge: Command Pattern
In this challenge, you have to implement the command pattern to solve the given problem.
We'll cover the following
Problem statement
Study and run the code snippet below:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.