Pregunta de entrevista de Workday

5/6 coding question in python/bash