input: Write a python function to get the lengths of strings in a list.
  assert string_lengths(["apple", "banana", "cherry"]) == [(5, "apple"), (6, "banana"), (6, "cherry")]
  assert string_lengths(["hello", "world"]) == [(5, "hello"), (5, "world")]
  assert string_lengths(["a", "ab", "abc", "abcd"]) == [(1, "a"), (2, "ab"), (3, "abc"), (4, "abcd")]
output: def string_lengths(strings):
      return [(len(s), s) for s in strings]