Kaar Technologies interview question

pattern questions, coding ques on bitwise operators