Samsara interview question

Create a container class for given scenario.