Bolt interview question

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