Bitscopic Interview Question

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