Morgan Stanley Interview Question

write a daemon