Pergunta de entrevista da empresa Broadcom

leetcode and the horse race problem