With code explanation for KiloManX problem