Evergent interview question

about java, oops and dsa