Pregunta de entrevista de Capital One

Hackerrank questions, involving max heap and KPM string matching algorithm