HCLTech interview question

sp and functions .solid principles