Compute minimal flips connecting two islands | Coupang