WD interview question

Check C code and find a bug