Siemens Healthineers Interview Question

2. Check 2nd bit of an integer is 1? Write the code in C++