Pergunta de entrevista da empresa Fireblocks

Leetcode question and an architecture question