nitix's submission of Chang and the Perfect Function | CodeChef