Pergunta de entrevista da empresa HexaView Technologies

2 programming questions from Hackerrank