Ittiam Systems interview question

Bit manipulation, DS, Threading, logic