Pergunta de entrevista da empresa Workday

5/6 coding question in python/bash