Nobody gets off on the First floor: $243$
Nobody gets off on the Second floor: $243$
Nobody gets off on at either floor: $2^5 = 32$
Note that nobody gets off at either floor is a subset of both nobody gets of at the first floor it is also a subset of nobody gets off at the second floor.
Nobody gets off on the First floor or Nobody gets off on the second floor: $243 + 243 - 32 = 454$
We have to subtract 32 to avoid double counting.
Somebody gets off at both the first floor and the second floor $= 4^5 - 454 = 570$