Given a stream of financial transactions, write a function to detect potentially duplicated charges within a sliding time window.