HackerEarth Remove the element problem solution - TheCScience