Wolt interview question

Problem solving question .. ..