LTIMindtree interview question

Technical interview: Java Basics and OOps