"See expected output" code is broken

programming
Tags: #<Tag:0x00007f24276eef68>

#1

{101010101010, 1} should give a output of 30, where as it’s showing 28.
{101010101010, 0} should give a output of 28, where as it’s showing 26.
Please rectify.