Pregunta de entrevista de M&T Bank

Coding test was like 2 lines of code, easier than leet easy