Let LL denote the number of 1s in integer DD’s binary representation. Given two integers S1S1 and S2S2, we call DD a WYH number if S1≤L≤S2S1≤L≤S2. With a given DD, we would like to find the next WYH number YY, which is JUST larger than DD. In other w…