HCLTech interview question

general programming, and conceptual questions