Intel Corporation Interview Question

Asked question which had to be solved using bit manipulation