Pergunta de entrevista da empresa Dropbox

Word problem where you have to use strings and arrays using HackerRank. Yes, you are timed.