Jackdaw’s Rest task and solution