Pergunta de entrevista da empresa Databricks

Given an array of string commands as input, output a correct file path.