I kind of need this stream reverse engineered into a for loop. How would it look?
public Optional<Flight> getFlightByFlightNumber(String flightNumber) {
return flights.stream()
.filter(flt -> flt.getFlightNumber().equals(flightNumber))
.findFirst();
}