[Geeks4Geeks] Modifying for all negative num cases