HCLTech interview question

Java