Moovit interview question

design question. threads problem. Standard code problem