first seven problems implemented from data structures theme.