Kapsch interview question

Usage of bitwise operators, Smart pointers