AlphaSights interview question

A Leetcode/hackerrank type coding test