Pregunta de entrevista de Affirm

One Leetcode style median difficulty question