String Interview Questions Java