One of the solutions to the Streaming videos Problem for Online Qualification Round, Hash Code 2017 by Cyhersteins team