Pergunta de entrevista da empresa Hexaware Technologies

Similar to the Leetcode problem.