solved a few hacker rank questions
swap file