Any person out of the 5 people can leave at any of the 7 floors above. Hence, total possibilities=7×7×7×7×7=75
If all the 5 people have to be at different floors,then these 5 can be arranged on 5 different floors out of the 7 floors in 7P5 ways.
Hence, probability =7P575
So, k=5