Bitscopic interview question

Some Java question about making an AddableInt class reach a target integer value.