Pregunta de entrevista de Tableau Software

NDA cannot reveal .. it was leetcode medium problem