BlackRock interview question

90 minute coding challenge on HackerRank