HCL interview question

About DSA and basic Java