LeadSquared interview question

Some optimization techniques for development