HND-SIN-HKG
HKG-PER
PER-MEL-BNE-SYD-LAX-JFK
JFK-DFW-LHR
LHR-DOH-NRT
Hope that is clearer. Cities are grouped with transits <24 hours, each line has any stop of 24 hours or more.
Removed the extra flights so now it should meet all the rules without needing to worry about exceptions.
Thank you!