Chargebee interview question

anaagram problem, data structure questions