Contains the problem solution with Priority queue implementation.