HCLTech interview question

Java opp and other with algorithms