Bloomberg Interview Question

Return true if a function is called more than N times in M seconds.