modified Sleeping Barber Problem exer to fir to the concept