Wrote solution for maximum set of compatible activities