hackerrank weeek 12