Hiii,
The solution is easy.
One set of persons ( whether they be 2,3or 4 people) can leave the floor in 10 ways. One of the two remaining sets can leave in 10-1 or 9 ways. The remaining people can leave the lift in 8 ways.
Total no. of ways = 10 x 9 x 8 = 720