FootfallCam Interview Question

Technical question regarding to IQ, and coding