Meesho interview question

How to automate process which will take undefined time?