I’ve never heard of cucumbers repelling cockroaches, although I’ve seen another plant repel cockroaches … I’ll not name that plant as it also causes negative reactions in humans, some could be quite serious …
You are correct that if your daughter sees one cockroach, there are at least 100 she hasn’t seen, perhaps thousands in the building … there are ways to get rid of them, but no way to stop a new tenant from bringing them back in … thus the problem with ridding the building of cockroaches is that it is only temporary, more will be brought in and re-infest the building …
A] Hire an exterminator, an honest one will do a great job …
B] “Do-it-yourself” methods will require all the tenants to fully co-operate, and this starts with complete cleanliness as all food sources must be eliminated … next all the cockroaches’ hiding place have to be filled, and for an older building this might take several cases of painter’s chalking … finally all the tenants have to set out roach traps, Combat brand is the best, one under the refer, another under the stove and one on top of the water heater … replace every month and within six months the building should be clear … remember, all it takes is one tenant leaving a bowl of cat food out to ruin the whole process …
Sadly, in some jurisdictions, if the unit was free of cockroaches when your daughter moved in, then the landlord is not responsible for the cockroach infestation that occurs afterward … however, cockroaches are bad for the landlord’s business … I suggest your daughter and her fellow tenants all do a major cleaning over the whole building, then ask the landlord to help, and suggest that hiring an exterminator when the building is squeaky clean would be of good value and potentially higher profits going forward … just an idea …
Years ago I read an interesting report about cockroaches from the University of Minnesota … one suggestion they had was to move everyone out for a couple of weeks, drain all the water lines, and let the building freeze up … cockroaches and their eggs all die if the temperature is -10ºF for awhile … an outdoor temperature common in Minnesota during the winter months …
ETA: Indeed, boric acid is effective, thanx Dorjän for bringing that up … under the stove and refer, on top of the water heater …