Capgemini interview question

Sudo code and binary comparion questions