Senos Tech interview question

basics of Java