Pergunta de entrevista da empresa Bitcoin.com

Coding Challenge question on leetcode