Implement interval room counter and token manager | Microsoft Interview Question