HackerEarth Let's swap problem solution - TheCScience