Chargebee interview question

Mostly Problem solving and Data structure related