Collabera interview question

Ds, java,