GE interview question

Asked me to write some codes and then some theoretical Java questions too.