Bitwise Blend Problem Code: BITBLEND Chef loves bitwise operations. So, he creates the following problem but needs…