Bitwise Interview Question

basics of OOP, Pattern Programs and SQL