FloQast Close Management may represent a short event stream as an array of objects, where each object contains one letter. Given this array and a target sequence, return every starting index where the target appears as a contiguous sequence, including overlapping matches.
Implement find_sequence(records, target).
records is a list of dictionaries. Every dictionary contains a letter key whose value is a single-character string.target is a non-empty string.def find_sequence(records, target):