A really hacky solution to DailyProgrammer's intermediate challenge #170