Detect recurring transactions from a ledger | Ramp Interview Question