Calculate Ad Insertion Statistics for Two Methods | Meta Interview Question