Count People Reaching the Boundary | Hudson Interview Question