Pergunta de entrevista da empresa Uber

basic probability and coding question in the screening