TechValens interview question

thread lifecycle