In this challenge, establish which type of constrained writing is applied to a sentence. There are four possible types to detect:
Given a string txt being a sentence, implement a function that returns the strings "Pangram", "Heterogram", "Tautogram" or "Transgram" accordingly to the above definitions and following the same given order to establish the result. If no constrained writing is detected, return the string "Sentence".
constraint("The quick brown fox jumps over the lazy dog.") ➞ "Pangram"
# The sentence contains every letter of the alphabet.
# Repetitions are not considered.
constraint("The big dwarf only jumps.") ➞ "Heterogram"
# The sentence has only unique characters.
constraint("Todd told Tom to take the tiny turtles.") ➞ "Tautogram"
# Every word starts with the letter "t".
constraint("A cannibal alligator has attacked an unaware vegan alligator.") ➞ "Transgram"
# Every word contains the letter "a".
constraint("The unbearable lightness of coding...") ➞ "Sentence"
# No constraint is applied to the sentence.