's submission of Heap Pirates | CodeChef