Compute invalid event percentage by pixel | Meta Interview Question