Rune Labs interview question

How do you identify whether a test case should be automated or performed manually?