Input: num =4, t =1Output: 6Explanation:
Apply the following operation once to make the maximum achievable number equal
to `num`:* Decrease the maximum achievable number by 1, and increase `num` by 1.
Input: num =3, t =2Output: 7Explanation:
Apply the following operation twice to make the maximum achievable number
equal to `num`:* Decrease the maximum achievable number by 1, and increase `num` by 1.
Each operation allows us to increase or decrease both the number and num by 1. To maximize the achievable number, we should always increase both as much as possible, so the answer is simply num + 2 * t.