Priority Queue With Tuples Hackerrank