My solution to some hackerrank challengues