Excersite to test ReentrantReadWrite Lock in Java