Java Coding Question For Automation Engineer