HackerEarth Missing Soldiers problem solution - TheCScience