An overly enterprised solution to DailyProgrammer's hard challenge #168