Solution for File fix it in ruby Problem A Round 1B - 2010