Expedition(greedy algo)

One test case failing.

My questions are usually never answered here but the date for my course completion is nearing. So I’d really appreciate it if somebody could help;

My code: