Walmart Global Tech interview question

Wendy Bob problem - OA