Moovit Interview Question

design question. threads problem. Standard code problem