Pregunta de entrevista de Bolt

A medium LeetCode BSF question tailored using Bolt's "problem".