Pergunta de entrevista da empresa Uber

Phone call with two separate engineers. Coding was done online through codepen with any language you prefer. Typical leetcode medium questions