So im assuming that Observer A is in a non-inertial frame (although its possible that the train is moving at a constant velocity ie. inertial frame, probably irrelevant because the train is moving at relativistic speeds) and Observer B is in an inertial frame.
According to that, observer B sees the lightning hit at the same time and Observer A sees the front lightning strike hit first because the train is moving towards the front one (at very high speeds). Also, with the length contraction and the lightning not hitting the train, i think that the length contraction is observed, not actual, as in Observer B thinks that the train has contracted, but it actually hasnt. I would say you can always safely assume that the lightning actually hits the front and back
just my $0.02
According to that, observer B sees the lightning hit at the same time and Observer A sees the front lightning strike hit first because the train is moving towards the front one (at very high speeds). Also, with the length contraction and the lightning not hitting the train, i think that the length contraction is observed, not actual, as in Observer B thinks that the train has contracted, but it actually hasnt. I would say you can always safely assume that the lightning actually hits the front and back
just my $0.02