Project Euler 826 - Birds on a Wire

Official link: https://projecteuler.net/problem=826

Note: I don't care much for statistics problems and managed to brute forced the solution!