whoso ignorance draw near hear sirens voice nevermore returnshomer OdysseyIn time Jason Argonauts know siren use sound song lure sailor demise yet know time siren sailor weaken make vulnerable for purpose problem siren song name sailor represent string lowercase english letter the time sailor occur contiguous substring song great danger inJason find siren sing n1 song follow structure let s_i 0 leq leq n ith song t string length n n s_i1 s_i t_i s_i in word i1st song concatenation ith song ith letter 0indexed t ith song fortunately know s_0 t Jason wonder time sailor mention particular song Answer q query give sailor w index song output number occurrence w s_i substre as number large output remainder modulo 1097