Hackerrank Solutions Data Structure