Evergent Interview Question

about java, oops and dsa