Challenge: Adapter Pattern

In this challenge, you have to implement the adapter pattern to solve the given problem.

Problem statement

In this challenge, you are given a TruthAndDare program like this:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.