Pregunta de entrevista de Amazon

I had two problem-solving problems

Respuesta de la entrevista

Anónimo

20 de nov de 2022

I managed to solve 1 and pass all test cases, the second passed most of the test cases, but fail in the last 3