HCLTech interview question

Two challenging situations, I successfully handled