Upstox interview question

some life cycle method