your task maintain queue consist lowercase English letter follow push c insert letter c queue pop delete letter queue Initially queue after operation ask count number distinct palindromic substring string obtain concatenate letter queueespecially number distinct palindromic substring string 0 a string s1n length n palindromic si sni1 1 leq leq n the string slr substre string s1n 1 leq l leq r leq n two string s1n t1 m distinct follow hold n neq m si neq ti 1 leq leq minnm