Ritual interview question

ArrayList manipulation