I dont get whats happening towards the end. The characters change completely

#1

Is it still the same novel or maybe this is a two in one