Pergunta de entrevista da empresa Applied Intuition

Leetcode problem in between medium and hard