HackerEarth Specialty of a sequence problem solution - TheCScience