Insane Problem Codeforces Solution Github