Adding answer for 168 Intermediate challenge, but this one doesn't calculate the number of blocks.