Tell me about a coding problem you solved where strong problem-solving skills and solid Android fundamentals were required. As a hands-on follow-up, validate whether an Android Activity callback sequence follows legal lifecycle transitions. Implement is_valid_activity_lifecycle(events), which accepts a list of callback names and returns a boolean.
def is_valid_activity_lifecycle(events):