Redirecting to
NADOS

Phoenix And Distribution

Input Format
check the link
Output Format
check the link
Question Video
Constraints
check the link
Sample Input
6
4 2
baba
5 2
baacb
5 3
baacb
5 3
aaaaa
6 4
aaxxzz
7 1
phoenix
Sample Output
ab
abbc
b
aa
x
ehinopx


  • Asked in Companies
  • Related Topics






Video Solution

Code Solution

Run
 
Run
Id Name