Added rightmost occurrence exercise from Comet