HackerEarth Remove Friend basic solution