separate the files hackerrank solution