It seems a rather easy exercise hence my confusion that I get very strange output. It returns a '4'. And it should be '1'.