rearrange folders Hackerrank