Capgemini Interview Question

Sudo code and binary comparion questions