Dell Technologies Interview Question

Explain State pattern ?