Pergunta de entrevista da empresa Bloomberg

1. Given a subway system and swipes, come up with an algorithm to calculate average time between stations 2. Given a string, return the nonrepeating subsequence