02_codechef_prosum AC with improvement from editorial