Prefix queries

Problem Name:
Prefix queries
Site:HackerEarth
Links:
Tags:
Problem setters: