GEICO interview question

Java questions